const path = require('path')

function resolve(dir) {
    return path.resolve(__dirname, dir)
}

module.exports = {

    chainWebpack: (config) => {
        config.resolve.alias
            .set('@assets', resolve('src/assets'))
            .set('@pages', resolve('src/pages'))
            .set('@common', resolve('src/common'))
            .set('@api', resolve('src/service/api'))
    },
}
